﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace iDMS.Models
{
    [MetadataType(typeof(Manufacturer_Validation))]
    public partial class Manufacturer
    {
       
    }

    public class Manufacturer_Validation
    {
        [Required(ErrorMessage = "Name is required")]
        [StringLength(80, ErrorMessage = "The value cannot exceed 80 characters. ")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Adress is required")]
        [StringLength(160, ErrorMessage = "The value cannot exceed 160 characters. ")]
        public string Adress { get; set; }

        [Required(ErrorMessage = "City is required")]
        [StringLength(50, ErrorMessage = "The value cannot exceed 50 characters. ")]
        public string City { get; set; }

        [Required(ErrorMessage = "PostCode is required")]
        [StringLength(20, ErrorMessage = "The value cannot exceed 20 characters. ")]
        public string PostCode { get; set; }

    }
}